#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"
int main()
{
	ListNode* plist=ListCreate();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrint(plist);

	ListPushFront(plist, 5);
	ListPushFront(plist, 6);
	ListPushFront(plist, 7);
	ListPushFront(plist, 8);
	ListPrint(plist);

	ListErase(ListFind(plist,3));
	ListPrint(plist);

	ListInsert(ListFind(plist, 1), 9);
	ListPrint(plist);

	ListPopBack(plist);
	ListPrint(plist);

	ListPopFront(plist);
	ListPrint(plist);

	ListDestory(plist);
	ListPrint(plist);
	return 0;
}